Question 1

For all questions in this quiz, consider that you have the following @FetchRequest code, which will fetch desserts from the Dessert entity:

    @FetchRequest( 
        sortDescriptors: AAA, 
        predicate: BBB, 
        animation: .default) 
    private var dishes: FetchedResults 

In this example, imagine that the Dessert entity contains two properties, names , and prices , which store dessert names and prices respectively.

How would you fill AAA in the @FetchRequest code above so that the results meet the following criteria?


Question 2

How would you fill BBB in the @FetchRequest code above, so you only get results whose name contains the term "Apple Pie"?


Question 3

How would you fill AAA and BBB in the @FetchRequest code above so that the results meet the following criteria?